<?php
namespace app\collect\controller;
use QL\QueryList;
class Index
{
    public function index()
    {
      /*  https://www.yunzhijia.com/space/c/rest/user/v2/login?1628949566832
        email: 15669922653
password: esE7SN7Foxgvuwc6QFfurQ==
    remember: false
forceToNetwork: false
redirectUrl:
accountType:
clientId: */
        // 用post登录
        $ql = QueryList::post('https://www.yunzhijia.com/space/c/rest/user/v2/login',[
            'email' => '15669922653',
            'password' => 'esE7SN7Foxgvuwc6QFfurQ==',
            'remember' =>'false',
            'forceToNetwork'=>'false',
            'redirectUrl'=>'',
            'accountType'=>'',
            'clientId'=>'',
        ]);
        dd($ql);

        /*get('https://www.yunzhijia.com/workflow/api/v1/flowWeb/todoList?appId=10104&ticket=APPURLWITHTICKET480f544a5beb5ab7199dd6ba9506f3fc%2CAPPURLWITHTICKET26106e790302f826aa00b82f3b33923d');*/

//采集需要登录才能访问的页面

        $ql->get('https://www.yunzhijia.com/cloudflow/home/manage/approval-approve?appId=10104&client_id=10104&expire_time=1628953390820&msgShowStyle=21');
echo $ql->getHtml();
    }

}
